<?php

namespace common\component;
use yii\base\Action;

class TestAction extends Action{

    public $name;
    public function test(){

        return '6666';
    }

    //先执行init
    public function init(){

        echo '先执行init';

    }

    public function run(){

        return '动作:'.$this->name;

    }
}